package com.wl.dzt.ide.controller;

import com.wl.dzt.basic.entity.BasicNumGenerate;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiImplicitParam;
import io.swagger.annotations.ApiImplicitParams;
import io.swagger.annotations.ApiOperation;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author wl_code@163.com
 * @version 1.0
 * @date 2018/7/10/010
 * @description 单号生成器
 */
@Api(description = "admin/numberGenerator", tags = "单号生成器")
@RestController
@RequestMapping("admin/numberGenerator")
public class NumberGeneratorController {

    @PostMapping("getNumCreate")
    @ApiOperation("获取单号")
    @ApiImplicitParams({
            @ApiImplicitParam(name = "key", value = "单号key", dataType = "String", required = true, paramType = "body"),
    })
    public String getNumCreate(String key) {
        return BasicNumGenerate.getNumCreate(key);
    }
}
